package com.bs.system.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * @author bingshao
 * @date 2023/2/27
 **/
@TableName(value ="user")
@Data
public class User implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 昵称
     */
    @TableField(value = "nick_name")
    private String nickName;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 真实姓名
     */
    @TableField(value = "real_name")
    private String realName;

    /**
     * 手机号
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 1:男,2:女
     */
    @TableField(value = "sex")
    private Integer sex;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 省id
     */
    @TableField(value = "province_id")
    private Long provinceId;

    /**
     * 市id
     */
    @TableField(value = "city_id")
    private Long cityId;

    /**
     * 区县id
     */
    @TableField(value = "county_id")
    private Long countyId;

    /**
     * 街道id
     */
    @TableField(value = "street_id")
    private Long streetId;

    /**
     * 住址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 头像路径
     */
    @TableField(value = "picture_url")
    private String pictureUrl;

    /**
     * 1:正常,2:禁用,3:注销
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 是否删除,1:删除，0：未删除
     */
    @TableField(value = "deleted")
    private Integer deleted;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    private static final long serialVersionUID = -1592891504298946768L;
}